package org.spring.springboot.component;

import org.spring.springboot.app.sys.role.service.ISysRoleService;
import org.spring.springboot.app.sys.systemoption.service.ISystemOptionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: eric
 * Date: 2017-12-13
 * Time: 17:22
 */
@Component
public class StartupRunner implements CommandLineRunner {

    @Autowired
    private ISystemOptionService systemOptionService;

    @Override
    public void run(String... strings) throws Exception {
        System.out.println(">>>>>>>>>>>>>>>服务启动执行，执行加载数据等操作<<<<<<<<<<<<<");
        systemOptionService.init();

    }
}
